package com.antdesignbackend.backend.district.service.impl;


import com.antdesignbackend.backend.district.entity.entityVo.DistrictVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.antdesignbackend.backend.district.mapper.DistrictMapper;
import com.antdesignbackend.backend.district.entity.District;
import com.antdesignbackend.backend.district.service.DistrictService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;


@Service
public class DistrictServiceImpl extends ServiceImpl<DistrictMapper, District> implements DistrictService {
    @Autowired
    DistrictMapper districtMapper;
    @Override
    public List<DistrictVo> search(QueryWrapper<DistrictVo> queryWrapper, Page<DistrictVo> page) {
        return districtMapper.search(queryWrapper,page);
    }

    @Override
    public Integer count(QueryWrapper<DistrictVo> queryWrapper) {
        return districtMapper.count(queryWrapper);
    }
}
